#include "Context.h"

Context::Context(void) : mState(0)
{
}

Context::~Context(void)
{
	if (mState)
		delete mState;
}

void Context::request()
{
	mState->handle();
}

void Context::changeState(State* newState)
{
	if(mState)
		delete mState;

	mState = newState;
}